package com.common.entity;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * action基类
 *
 * @author houyanfeng 2015-10-12
 */
@SuppressWarnings("serial")
@Slf4j
public abstract class BaseController {
    @Autowired
    protected HttpServletRequest request;
    protected HttpSession session;
    protected ServletContext application;
    protected String token;

    public BaseController() {
        super();
    }

    public HttpSession getSession() {
        return session;
    }

    public void setSession(HttpSession session) {
        this.session = session;
    }

    public ServletContext getApplication() {
        return application;
    }

    public void setApplication(ServletContext application) {
        this.application = application;
    }

}
